package com.itheima.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.itheima.pojo.DishFlavor;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;

/**
 * @author Administrator
 */
@Data
public class DishPageVo {

        private String id;
        private String type;
        private String name;
        private String categoryId;
        private String price;
        private String code;
        private String image;
        private String description;
        private String status;
        private String sort;
        //@DateTimeFormat(pattern = "yyyy-MM-dd")
        @JsonFormat(pattern = "yyyy-MM-dd ")
        private Date createTime;
        //@DateTimeFormat(pattern = "yyyy-MM-dd")
        @JsonFormat(pattern = "yyyy-MM-dd ")
        private Date updateTime;
        private String createUser ;
        private String updateUser;
        private List<DishFlavor> flavors;
        private String categoryName;
        private String copies;
}
